package com.ww.mapper;

import com.ww.pojo.User;
import com.ww.pojo.UserVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 用户接口
 */
@Mapper
@Component
public interface UserMapper {

    List<User> findalluser();

    User queryByUserEmail(String user_email);

    int adduser(UserVO uservo);

    /**
     * 通过用户ID进行删除操作
     * @param user_id
     */
    @Delete("DELETE FROM user WHERE user_id=#{user_id}")
    Boolean deleteuser(Integer user_id);
}
